
#ifndef CAMERAPANEL_H
#define CAMERAPANEL_H

#include <BGroupBox>
#include <BButton>
#include <BLineEdit>
#include <BRealSpinBox>
#include <BComboBox>
#include <BSpinBox>
#include <BButton>
#include <BCheckBox>
#include <BCamera>

#include "BasicPanel.h"

class CameraPanel : public BasicPanel
{
	BOBJECT(CameraPanel)
public:
	CameraPanel(BWidget* parent = 0);
	~CameraPanel();

protected:
	void slotAssetChanged();
	
	void slotOrthoCheckBoxToggled(BObject* object, const BValue& value);
	void slotLensWidthEditFinished(BObject* object, const BValue& value);
	void slotLensHeightEditFinished(BObject* object, const BValue& value);
	void slotNearEditFinished(BObject* object, const BValue& value);
	void slotFarEditFinished(BObject* object, const BValue& value);
	void slotFovyEditFinished(BObject* object, const BValue& value);

protected:
	virtual void styleEvent(const BEvent& event);

private:
	BCamera*		_camera;
	BCheckBox*		_orthoCheckBox;
	BRealSpinBox*	_lensWidthSpinBox;
	BRealSpinBox*	_lensHeightSpinBox;
	BRealSpinBox*	_nearSpinBox;
	BRealSpinBox*	_farSpinBox;
	BRealSpinBox*	_fovySpinBox;

};

#endif
